module.exports = function($modal, $state, $resource){

	return {
		restrict : 'A',
		link : function(scope, elements, attr){
			if (scope.$last) {
				$('#treetable').unbind(); 
				setTimeout("$(\"#treetable\").treeTable({expandLevel : 3}).show(); ",1); 
            }
		}
	};

};

